 <div id="header">
	
	<ul id="menu">
    <li <?php print((basename($_SERVER['PHP_SELF']) == 'index.php') ? "id='active'" : ""); ?>><a href="index.php">NEWS<span class="tab-l"></span><span class="tab-r"></span></a></li> 
    <?php
	if ($user_name != ""){
		if ($user_status == 1){
			print("
				<li><a href=''>STUDENTS<span class='tab-l'></span><span class='tab-r'></span></a></li>
                        	<li><a href=''>TEACHERS<span class='tab-l'></span><span class='tab-r'></span></a></li>
				<li><a href=''>MANAGER<span class='tab-l'></span><span class='tab-r'></span></a></li>
                        	<li><a href=''>ADMINISTRATION<span class='tab-l'></span><span class='tab-r'></span></a></li>
				
				<li><a href='scripts/logout.php' class='kuk'>LOG OUT<span class='tab-l'></span><span class='tab-r'></span></a></li>
			");
		}
		else if ($user_status == 2){
			print("
				
			<li ".((basename($_SERVER['PHP_SELF']) == 'manager_teachers.php' ? "id='active'" : "" ))."><a href='manager_teachers.php'>TEACHERS<span class='tab-l'></span><span class='tab-r'></span></a></li>
			<li ".((basename($_SERVER['PHP_SELF']) == 'manager_timetable.php' ? "id='active'" : "" ))."><a href='manager_timetable.php'>TIMETABLE<span class='tab-l'></span><span class='tab-r'></span></a></li>
				<li><a href='scripts/logout.php' class='kuk'>LOG OUT<span class='tab-l'></span><span class='tab-r'></span></a></li>
			");
		}
		else if ($user_status == 3){
			print("
<li ".((basename($_SERVER['PHP_SELF']) == 'teacher_students.php' ? "id='active'" : "" ))."><a href='teacher_students.php'>STUDENTS<span class='tab-l'></span><span class='tab-r'></span></a></li>
<li ".((basename($_SERVER['PHP_SELF']) == 'teacher_grades.php' ? "id='active'" : "" ))."><a href='teacher_grades.php'>GRADES<span class='tab-l'></span><span class='tab-r'></span></a></li>
<li ".((basename($_SERVER['PHP_SELF']) == 'teacher_timetable.php' ? "id='active'" : "" ))."><a href='teacher_timetable.php'>TIMETABLE<span class='tab-l'></span><span class='tab-r'></span></a></li>
				<li><a href='scripts/logout.php' class='kuk'>LOG OUT<span class='tab-l'></span><span class='tab-r'></span></a></li>
			");
		}
		else if ($user_status == 4){
			print("
<li ".((basename($_SERVER['PHP_SELF']) == 'student_registration.php' ? "id='active'" : "" ))."><a href='student_registration.php'>REGISTRATION<span class='tab-l'></span><span class='tab-r'></span></a></li>
<li ".((basename($_SERVER['PHP_SELF']) == 'student_grades.php' ? "id='active'" : "" ))."><a href='student_grades.php'>GRADES<span class='tab-l'></span><span class='tab-r'></span></a></li>
				<li><a href='scripts/logout.php' class='kuk'>LOG OUT<span class='tab-l'></span><span class='tab-r'></span></a></li>
			");
		}
	}
	else{
		print("
			<li ".((basename($_SERVER['PHP_SELF']) == 'authorization.php') ? "id='active'" : "" )."><a href='authorization.php'>LOG IN<span class='tab-l'></span><span class='tab-r'></span></a></li>
			<li ".((basename($_SERVER['PHP_SELF']) == 'registration.php') ? "id='active'" : "" )."><a href='registration.php'>REGISTRATION<span class='tab-l'></span><span class='tab-r'></span></a></li>
			<li ".((basename($_SERVER['PHP_SELF']) == 'contacts.php') ? "id='active'" : "" )."><a href='contacts.php'>CONTACTS<span class='tab-l'></span><span class='tab-r'></span></a></li>
		");
	}
	?>
	</ul>
</div>
